package data;

import java.util.ArrayList;

/**
 * 
 * @author Niels Schmidt Hansen iniates the Transaction class
 */
public class Transaction {

	private int transactionId;
	private int accountId;
	private String transactionText;
	private double amount;
	private double balance;
	private ArrayList<Account> accounts;

	/**
	 * Transaction constructor and it's paratmeter
	 * 
	 * @param args
	 */
	public Transaction(int accountId, String transactionText, double amount,
			double balance) {

		accounts = new ArrayList<Account>();
		this.accountId = accountId;
		this.transactionText = transactionText;
		this.amount = amount;
		this.balance = balance;

	}

	/**
	 * 
	 * @return transactionId
	 */
	public int getTransactionId() {
		return transactionId;
	}

	public void setTransactionId(int transactionId) {
		this.transactionId = transactionId;
	}

	/**
	 * 
	 * @return accountId
	 */
	public int getAccountId() {
		return accountId;
	}

	public void setAccountId(int accountId) {
		this.accountId = accountId;
	}

	/**
	 * 
	 * @return transactionText
	 */
	public String getTransactionText() {
		return transactionText;
	}

	public void setTransactionText(String transactionText) {
		this.transactionText = transactionText;
	}

	/**
	 * 
	 * @return amount
	 */
	public double getAmount() {
		return amount;
	}

	public void setAmount(double amount) {
		this.amount = amount;
	}

	/**
	 * 
	 * @return balance
	 */
	public double getBalance() {
		return balance;
	}

	public void setBalance(double balance) {
		this.balance = balance;
	}

}
